package cn.huiyunche.base.service.enums;

/**
 * 人送车－订单请求操作日志
 *
 * @author hdy [Tuffy]
 */
public enum DRequestTypeEnum {

    /**
     * CANCEL
     */
    CANCEL(10, "订单取消");

    private final int value;
    private final String text;

    DRequestTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    /**
     * Gets value.
     *
     * @return the value
     */
    public int getValue() {
        return value;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * Get by value d waybill status enum.
     *
     * @param value the value
     * @return the d waybill status enum
     */
    public static DRequestTypeEnum getByValue(int value) {
        for (DRequestTypeEnum temp : DRequestTypeEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
